// 正确示例

const onChange = (halfLeading: boolean): number => {
  return 100;
};

const flag: boolean = true;

// 错误示例

const onSearchChange = (halfLeading: bool): number => {
  return 100;
};

const flag2: bool = true;
